package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.XsdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface XsdProductService extends BaseService<XsdProductBean> {

	XsdProductBean getXsdProductBeanById(String id) throws Exception;
	
	void removeXsdProductBeanById(String id) throws Exception;
	
	void removeXsdProductBeanByIds(String ids) throws Exception;
	
	XsdProductBean saveXsdProductBean(XsdProductBean crm) throws Exception;
	
	XsdProductBean updateXsdProductBean(XsdProductBean crm) throws Exception;
	
	Page<XsdProductBean>  findXsdProductBeanByCond(XsdProductBean bean,
			Page<XsdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveXsdProductBeanExt(String sql) throws Exception;

	String findXsdProductBeanExtCreate(String tableName) throws Exception;

	String findXsdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findXsdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasXsdProductBeanExtData(String tableName, String id)
			throws Exception;
}